<template>
	<el-card shadow="never" header="近7天操作记录">
		<jdTable ref="table" :apiObj="apiObj" stripe highlightCurrentRow hideDo>
			<el-table-column label="状态" prop="status" width="60" align="center">
				<template #default="scope">
					<el-icon v-if="scope.row.status==0" style="color: #409EFF;"><el-icon-info-filled /></el-icon>
					<el-icon v-if="scope.row.status==1" style="color: #f56c6c;"><el-icon-circle-close-filled /></el-icon>
				</template>
			</el-table-column>
			<el-table-column label="日志号" prop="operId" width="180"></el-table-column>
			<el-table-column label="日志名" prop="title" width="150"></el-table-column>
			<el-table-column label="请求接口" prop="operUrl"></el-table-column>
			<el-table-column label="请求方法" prop="requestMethod" align="center"></el-table-column>
			<el-table-column label="IP地址" prop="operIp"></el-table-column>
			<el-table-column label="日志时间" prop="operTime" width="180" fixed="right"></el-table-column>
		</jdTable>
	</el-card>
</template>

<script>
	export default {
		data() {
			return {
				apiObj: this.$API.system.logs.list,
			}
		}
	}
</script>

<style>

</style>
